#ifndef __FLATPAKINFO__H__
#define __FLATPAKINFO__H__

#include "FlatpakBase.h"

class Flatpak::Info : public Flatpak::Base
{
    public:
        initCommand(Info, "info");
        Info(const Info &) = default;
        Info(Info &&) = default;
        Info &operator=(const Info &) = default;
        Info &operator=(Info &&) = default;

        // --arch=
        Archs(Info)
        // --user/--system
        UserSystem(Info)
        
        // --show-ref
        // --show-commit
        // --show-origin
        // --show-size
        // --show-metadata
        Show(Info, ref)
        Show(Info, commit)
        Show(Info, origin)
        Show(Info, size)
        Show(Info, metadata)

        // --show-runtime
        // --show-sdk
        Show(Info, runtime)
        Show(Info, sdk)

        // --show-permissions
        // Show(Info, permissions)

        // --show-extensions
        // --show-location
        Show(Info, extensions)
        Show(Info, location)

        // --ostree-verbose
        OstreeVerbose(Info)

        Package(Info);

        QString run() {
            Base::run();
            
            return FlatpakCommand::RunCommand(command, args);
        }

};

#endif  //!__FLATPAKINFO__H__

/****************************************************************
Usage:
  flatpak info [OPTION…] NAME [BRANCH] - Get info about an installed app or runtime

Help Options:
  -h, --help                 Show help options

Application Options:
  --arch=ARCH                Arch to use
  --user                     Show user installations
  --system                   Show system-wide installations
  --installation=NAME        Show specific system-wide installations
  -r, --show-ref             Show ref
  -c, --show-commit          Show commit
  -o, --show-origin          Show origin
  -s, --show-size            Show size
  -m, --show-metadata        Show metadata
  --show-runtime             Show runtime
  --show-sdk                 Show sdk
  -M, --show-permissions     Show permissions
  --file-access=PATH         Query file access
  -e, --show-extensions      Show extensions
  -l, --show-location        Show location
  -v, --verbose              Show debug information, -vv for more detail
  --ostree-verbose           Show OSTree debug information
****************************************************************/